package com.ruoyi.api.abuwx.api;

import com.ruoyi.abuwx.domain.AbuwxQuestionChoice;
import com.ruoyi.api.abuwx.service.ICChoiceService;
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zouhuu
 * @description 客户端题目模块API接口
 * @date 2022/07/05 09:04:30
 */
@RestController
@RequestMapping("/api/abuwx")
@Api(tags = "客户端-题目模块API")
public class ChoiceApi {

    @Autowired
    private ICChoiceService icChoiceService;

//    @ApiOperation("题目详情")
    @GetMapping("/Choice")
    public AjaxResult Choice(@ApiParam(value = "题目ID", required = true) AbuwxQuestionChoice abuwxQuestionChoice) {
        return AjaxResult.success(icChoiceService.selectSiteChestInfo(abuwxQuestionChoice));
    }
}
